from selenium import webdriver
from task.base.baseApi import Base
import time
import task.pageObject
import allure

class PageIndex(Base):
    @allure.step('点击登录链接')
    def click_login_link(self):
        self.base_click(task.pageObject.index_login_link)

    @allure.step('点击个人中心')
    def person_center(self):
        self.base_click(task.pageObject.loc_add_center)
        time.sleep(2)